package The_names_Bond;

import java.util.StringTokenizer;

public class JamesBond {

	public JamesBond(){
		
	}

	
	public static Boolean bondRegex(String input){
		
	if(input.matches("(\\d*)"+"[(]"+"(\\d*)"+"[)]*"+"[(]*"+"(\\d*)"+
	"007"+"(\\d*)"+"[)]*"+"[(]*"+"(\\d*)"+"[)]"+"[)]*"+"(\\d*)"+"[(]*"))
	   return true;
	   else
		return false;
		
	}
}
